package com.woniuxy.daos;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.Lost;

import java.util.List;
import java.util.Map;

public interface LostDao {
    int deleteByPrimaryKey(Integer lost_id);

    int insert(Lost record);

    int insertSelective(Lost record);

    List<Lost> selectAll();

    Lost selectByPrimaryKey(Integer lost_id);

    int updateByPrimaryKeySelective(Lost record);

    int updateByPrimaryKey(Lost record);

    List<Lost> selectByCnameOrStatus(Integer lost_status, String com_name,String user_name);


    //客户流失折线图（按年份查询）
    List<Map<String, Integer>> getLostCount(Integer year);

    //按照客户经理或公司名称查询流失记录
    List<Lost> getLostByCidOrUid(Integer user_id, Integer com_id);
}